package com.dotflat.training.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "ol_course")
@Data
@EqualsAndHashCode(callSuper = true)
public class OLCourseCategory extends AreableObjectBase {

        @JSONField(
                name = "group_id"
        )
        private Long groupId;
        @JSONField(
                name = "title"
        )
        private String title;
        @JSONField(
                name = "goods_count"
        )
        private Integer goodsCount;
        @JSONField(
                name = "is_default"
        )
        private Integer isDefault;
        @JSONField(
                name = "created_time"
        )
        private Date createdTime;
        @JSONField(
                name = "url"
        )
        private String url;
        @JSONField(
                name = "alias"
        )
        private String alias;

}
